"""
几何分布
2017.05.24
"""


import numpy as np
from scipy.stats import geom as G
import matplotlib.pyplot as plt

rv = G(0.2)
x = np.arange(1, 11, 1)
y = rv.pmf(x)
print(x)
print(y)
plt.bar(x, y, width=0.6, color='blue')
plt.show()

